using System;
using System.Collections.Generic;
using System.Linq;

namespace SampleWebApplication.code
{
    public class RequestNotes : INotes
    {
        private readonly INotes _inner;

        public RequestNotes(INotes inner)
        {
            _inner = inner;
        }

        #region INotes Members

        public IEnumerable<INote> Notes
        {
            get
            {
                return _inner.Notes.Concat(
                    new[]
                        {
                            new Note
                                {
                                    Text = "Server time is " + DateTime.Now.ToLongTimeString()
                                }
                        });
            }
        }

        #endregion
    }
}